import React from "react";
export default class Field extends React.Component{
    render(){
        return(
            <div>
                <label>{this.props.label}</label>
                <input value={this.props.value} type={this.props.type} onChange={(e)=>{
                    this.props.changeEvent(e.target.value)
                }}/>
            </div>
        )
    }
}